# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=netstat-nat
pkgver=1.4.10
pkgrel=5
pkgdesc="Small program written in C displaying NAT connections, managed by netfilter."
url="https://tweegy.nl/projects/netstat-nat/"
license=("GPL")
arch=(loong64 x86_64)
depends=(iptables)
source=(https://tweegy.nl/download/netstat-nat-$pkgver.tar.gz)
sha512sums=('2089119b26039e656fbe76701e556f7d766159c96b18968195f255e15072af37972c83a8f05edb0b767a12f0521598975673d10d8ba5e6ed6b754a927d4f069d')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
